package com.shy.example.alibaba.sentinel.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("demo")
@Slf4j
public class DemoController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("testA")
    public String testA(){
        return "本网站提醒您，服务访问成功-----testA";
    }

    @GetMapping("testB")
    public String testB(){
        return "本网站提醒您，服务访问成功-----testB";
    }
}
